#!/bin/sh
CONF_FILE='/tmp/snmpd.conf'
SNMPD='/usr/sbin/snmpd.strip'

PASSWD=`cfg -v SECURE_PASSWORD`
cp /etc/snmpd.conf $CONF_FILE
echo 'createUser ookadmin MD5 "'$PASSWD'"' 'DES "ookprivacy"'>> $CONF_FILE
echo 'rwuser ookadmin'>>$CONF_FILE
$SNMPD -c $CONF_FILE
